import {
  Properties,
  CommonProps,
  CommonState,
  IOption,
} from '../../../common/SelectProps';
import { IGaeaSetting } from '../../../../defines/application';

export class Props extends CommonProps {
  public editSetting: IGaeaSetting = {
    key: 'gaea-radio-select',
    name: 'RadioSelect',
    type: 'text',
    grouping: 'optionType',
    editors: [...Properties],
  };
  public isDeclare?: boolean = false;
  public enableSearch = false;
  public getMattersListFromModal = (list: any): void => {};
  showAddModal: boolean;
  public hideAddModal = () => {};
  ref?: any;
  onCloseModal?: (params: any) => {};
  triScope?: string;
}

export class State extends CommonState {
  selectedValue?: { label: string; text: string; value: string } | null;
  isModal = false;
  showAddModal?: boolean = false;
  checkedValue?: string;
  checkedLabel?: string | number;
  searchValue: any;
  options: any[];
  sourceOptions: any[];
  loading?: boolean;
  noData?: boolean;
  otherParams?: any;
  matterIdList?: any = [];
  checkedList: any = [];
}
